package lab02.test37;

public class Graduate extends Student {
    public Graduate(String name) {
        super(name);
        dept = "研究生";
    }

    @Override
    public void graderank() {
        int sum = 0;

        for(int i = 0; i < courseNum;i++){
            sum += coursesgrade[i];
        }

        aver = sum / courseNum;

        if(aver > 80){
            gradeRank = "通过";
        }else {
            gradeRank = "未通过";
        }

    }
}
